:******************************************************************************
:* DBDeploy.cmd
:******************************************************************************
:* Developer: Cash Foley (cash.foley@ps.net)
:* Copyright (C) 2004, Perot Systems Corporation. All rights reserved.
:******************************************************************************
:* DBDeploy uses constructed file DBVersion.cmd and NAnt to Version Database
:* See ERRORPARMS for usage.
:******************************************************************************

@echo off
@CLS

@echo ************************************************************
@echo * Database Deployment 
@echo * (C) 2006, Perot Systems Corporation. All rights reserved.
@echo ************************************************************

IF "%2" == "" GOTO ERRORPARAMS
IF "%3" == "" GOTO CONTINUE
IF "%4" == "" GOTO ERRORPARAMS

:CONTINUE

REM * util\nant\
nant.exe /f:DBVersion.build -D:database.server="%1" -D:database.catalog="%2" -D:database.username="%3" -D:database.password="%4" -D:UtilDir="..\ProjectBuildControl\InstallBase\Util" -D:DataDir="."

GOTO END

:ERRORPARAMS
@ECHO  Usage: DBDeploy.cmd ServerName Database Username Password
@ECHO  [ServerName] - name of the database server
@ECHO  [Database] - name of the database
@ECHO  [Username] - db username (empty for trusted connection)
@ECHO  [Password] - password (empty for trusted connections)

:END
 